package com.job.action;
import org.springframework.beans.factory.annotation.Autowired;

import com.job.model.Product;
import com.job.service.ProductService;
import com.opensymphony.xwork2.ActionSupport;
public class OneAction extends ActionSupport{
	private Integer id;
	private Product product;
	@Autowired
	private ProductService productService;
	public String one() {
		product=productService.get(id);
		return "success";
		
	}			
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
}
